import GameCtr from '../../Controller/GameCtr';

const { ccclass, property } = cc._decorator;

@ccclass
export class Cubekind extends cc.Component {

    static arrkinds = [
        [0],
        [0, 1],
        [0, 1, 2],
        [0, 1, 2, 3],
        [0, 1, 2, 3, 4],
        [0, 1, 2, 3, 4, 5],

        [0, ",", 10],
        [0, ",", 10, ",", 20],
        [0, ",", 10, ",", 20, ",", 30],
        [0, ",", 10, ",", 20, ",", 30, ",", 40],
        [0, ",", 10, ",", 20, ",", 30, ",", 40, ",", 40],

        [0, 1, ",", 10, 11],
        [0, 1, ",", 10, 11, ",", 20, 21],//12
        [0, 1, 2, ",", 10, 11, 12],//13

        [0, 1, ",", 10],//14
        [0, 1, ",", 11],
        [0, ",", 9, 10],//16
        [0, ",", 10, 11],//17


        [0, ",", 9, 10, 11],//18
        [0, ",", 10, 11, ",", 20],//19
        [0, 1, 2, ",", 11],//20
        [0, ",", 9, 10, ",", 20],//21     

        [0, ",", 10, 11, ",", 21],//22
        [0, 1, ",", 9, 10],//23
        [0, ",",10, 11,",", 23],//24
        [0, 1,",", 9, 10],//25

        [0, ",", 10, 11, 12],//26
        [0, 1, ",", 10, ",", 20],//27
        [0, 1, 2, ",", 12],//28
        [0, ",", 10, ",", 20, ",", 21],//29
        [0, 1, 2, ",", 10],//30
        [0, 1, 2, ",", 12],
        [0, ",", 10, ",", 20, ",", 21],//32
        [0, ",", 10, ",", 20, ",", 19],

        [0, ",", 9, 10, 11, ",", 19, 21],//34
        [0, 1, ",", 11, 12, ",", 20, 21],//35

        [0, 1, ",", 9, 10, ",", 20, 21],//36
        [0, 2, ",", 10, 11, 12, ",", 21],//37

        [0, 1, 2, ",", 10, ",", 12],
        [0, 1, ",", 11, 20, ",", 21],//39
        [0, 2, ",", 10, 11, 12],
        [0, 1, ",", 10, ",", 20, 21],//41

        [0, 1, ",", 10, ",", 20, ",", 30, 29],
        [0, ",", 10, 11, 12, 13, ",", 23],
 
        [0, ",", 7, 8, 9, 10, ",", 18],
        [0, 1, ",", 11, ",", 21, ",", 31, 32],
    ];

    arrRow = [];
    arrCol = [];
    onLoad() {
        let temp = [];

        for (let index = 0; index < 10; index++) {
            for (let k = 0; k < 10; k++) {
                temp.push(index * 10 + k);
            }
            this.arrRow.push(temp);
            temp = [];
        }
        console.log(this.arrRow);

        temp = [];

        for (let index = 0; index < 10; index++) {
            for (let k = 0; k < 10; k++) {
                temp.push(k * 10 + index);
            }
            this.arrCol.push(temp);
            temp = [];
        }
        console.log(this.arrCol);
       // GameCtr.ReviveGameSettingCtr();
        //GameCtr.teachingCtr();
    }

}
